<?php
	include "dbmng/dbconfig.php";

	// get version of PHP
	echo "<p>PHP version: ". phpversion()."</p>";

	$sqlCon = mysqli_connect(HOST, USERNAME, PASSWORD, DBNAME, PORT);
	if (mysqli_connect_error()) {
		die("<p>Connection failed: " . $conn->connect_error . "</p>");
	}elseif($sqlCon){
		echo "<p>MySQL version: " . mysqli_get_server_version($sqlCon) . "</p></br>";
	}else{
		echo "<p>unkown error!</p></br>";
	}
?>
